<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <meta name="generator" content="pandoc" />
  <title>nfs问题分析</title>
  <style type="text/css">code{white-space: pre;}</style>
  <link rel="stylesheet" href="doc/linux-style.css" type="text/css" />
</head>
<body>
<div id="header">
<h1 class="title">nfs问题分析</h1>
</div>
<div id="TOC">
<ul>
<li><a href="#nfs问题分析">nfs问题分析</a><ul>
<li><a href="#本地挂载-nfs-共享">本地挂载 NFS 共享</a></li>
<li><a href="#nfs_latency问题"><a href="https://dingpenglong.com/linux_kernel/fs/nfs/issue/nfs_latency">nfs_latency问题</a></a></li>
<li><a href="#stat-nfsv3-sync-write-time问题"><a href="https://dingpenglong.com/linux_kernel/fs/nfs/issue/stat-nfsv3-sync-write-time">stat-nfsv3-sync-write-time问题</a></a></li>
<li><a href="#mount-rpc-write-param问题"><a href="https://dingpenglong.com/linux_kernel/fs/nfs/issue/mount-rpc-param">mount-rpc-write-param问题</a></a></li>
<li><a href="#nfsv3-locked-timer问题"><a href="https://dingpenglong.com/linux_kernel/fs/nfs/issue/nfsv3-locked-timer">nfsv3-locked-timer问题</a></a></li>
</ul></li>
</ul>
</div>
<h1 id="nfs问题分析">nfs问题分析</h1>
<h2 id="本地挂载-nfs-共享">本地挂载 NFS 共享</h2>
<pre><code># 创建挂载点
sudo mkdir -p /tmp/s_test

# 挂载本地共享 (使用NFSv4协议)
sudo mount -t nfs -o vers=4.1 localhost:/s_test /mnt

# 验证挂载
df -hT | grep nfs4
# 应输出类似：
# localhost:/nfs_share nfs4   503G   41G  437G    9% /mnt

# 写操作
 dd if=/dev/urandom of=/mnt/nfs_test/large_file.dat bs=1M count=10 status=progress
</code></pre>
<h2 id="nfs_latency问题"><a href="https://dingpenglong.com/linux_kernel/fs/nfs/issue/nfs_latency">nfs_latency问题</a></h2>
<h2 id="stat-nfsv3-sync-write-time问题"><a href="https://dingpenglong.com/linux_kernel/fs/nfs/issue/stat-nfsv3-sync-write-time">stat-nfsv3-sync-write-time问题</a></h2>
<h2 id="mount-rpc-write-param问题"><a href="https://dingpenglong.com/linux_kernel/fs/nfs/issue/mount-rpc-param">mount-rpc-write-param问题</a></h2>
<h2 id="nfsv3-locked-timer问题"><a href="https://dingpenglong.com/linux_kernel/fs/nfs/issue/nfsv3-locked-timer">nfsv3-locked-timer问题</a></h2>
</body>
</html>
